package com.sooth.micro.model.service;

import com.dream.boot.impl.ServiceImpl;
import com.sooth.micro.model.mapper.MicroModelMapper;
import com.sooth.micro.model.view.MicroModelBo;
import com.sooth.micro.model.view.MicroModelVo;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 关联实体模型
 * @Author: moxa
 * @Date: 2023-12-03 17:41:56
 */
@RequiredArgsConstructor
@Service
public class MicroModelServiceImpl extends ServiceImpl<MicroModelVo, MicroModelBo> implements IMicroModelService {
    private final MicroModelMapper modelMapper;

    @Override
    public int deleteByAppId(Long appId) {
        return modelMapper.deleteByAppId(appId);
    }

    @Override
    public List<MicroModelBo> selectByAppId(Long appId) {
        return modelMapper.selectByAppId(appId);
    }
}
